package cn.stu.system.controller;


import cn.stu.common.utils.ApiData;
import cn.stu.framework.dto.LogDto;
import cn.stu.framework.service.LogService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 日志控制器和日志控制器
 *
 * @author 郑志豪
 * @date 2023/11/07
 */
@RestController
@RequestMapping("/syslog")
@AllArgsConstructor
public class LogController {
    private final LogService logService;

    @GetMapping("/list")
    public ApiData systemLogList(LogDto dto) {
        return logService.logList(dto);
    }
}

